﻿<!--{inc(header.view.html)}-->


<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">
                                                 <li><a href="index.php?app=new&act=index"  target="mainframe">新闻信息列表</a></li>
                                                 <li><a href="#" class="nav_icon" target="mainframe">新增新闻信息</a></li>
                                                 <li><a href="index.php?app=new&act=cagrylist"  target="mainframe">新闻分类列表</a></li>
                                                 <li><a href="index.php?app=new&act=cagryadd"  target="mainframe">新增新闻分类</a></li>
	                                 </ul>
                       </div>
                
</div>



<div id="content">
                   <h1>新增新闻信息</h1>

                  <div>
                                    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span>
                                    </div>


<form action="?app=new&act=addpost" method="post">

                                   <table align="center" width="100%" cellpadding="4" cellspacing="0" border="0" class="table_style">
                                   
                                   
                                  <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td width="15%">所属栏目<font color=red>(*)</font>:</td>
	                                      <td>
	                                       <select name="data[cat_id]" >
                                           <option value='0'>请选择分类...</option>
                                           
                                           <!--{foreach($categorydata as $_key => $_value )}-->
                                           
				<!--{if ($_value.cat_id==0)}-->selected<!--{/if}-->>{$_value.str_pad}{$_value.cat_name}<option value="{$_value.cat_id}" <!--{if ($_value.cat_id==0)}-->selected<!--{/if}-->>{$_value.str_pad}{$_value.cat_name}</option>
                
                                            <!--{/foreach}-->
                                           </select>
	                                     </td>
                                 </tr>                                   
                                   
                                   
                                   <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">

	                                      <td >标题:</td>
	                                      <td>
                                         <input type="text" name="data[title]" size="60" value="" id="title">
<!--                    <br/><span close="01"> 
                    颜色: 
                    <input type="text" name="data[titlecolor]" style="background:;" size="7" value="" id="titlecolor" onClick="foreColor_font();">
                    加粗: 
                    <input type="checkbox" name="data[fonttype]" value="1" >
                    </span>-->
                    
                                     </td>
                                   </tr>
                                   <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td>关键字<font color=red>(标签)</font>:</td>
	                                      <td>
                                            <input type="text" name="data[keywords]" size="50" value="" id="keyword_s">
                    <select name="select2" onChange="MM_keyword(this)">
                     <option value='' selected>常用关键字</option>
					 <!--{foreach($keyworddata as $_key => $_value )}-->

		  <option value='{$_value}' >{$_value}</option>

		   <!--{/foreach}--> 
                    </select>
 <SCRIPT LANGUAGE="JavaScript">
<!--
function get_obj(obj){
   return document.getElementById(obj);
}

function foreColor_font()
{
  
  var arr = showModalDialog('../data/html/selcolor.htm', '', 'dialogWidth:18.5em; dialogHeight:17.5em; status:0');
  if (arr != null)  get_obj('titlecolor').value=arr;
  else  get_obj('titlecolor').focus();
  get_obj('titlecolor').style.background=arr;
}


//-->
</SCRIPT>                   
                    
                    
                    <script language="JavaScript">
<!--
function MM_keyword(selObj){ //v3.0
  va=selObj.options[selObj.selectedIndex].value
  if (va!=''){
  	if(get_obj('keyword_s').value==''){
		get_obj('keyword_s').value=va;
	}else{
		vb=get_obj('keyword_s').value;
		arr = vb.split(' ');
		for(var i=0;i<arr.length;i++){
			if(arr[i]==va){
				alert(va+",已经存在了,不能雷同");
				return ;
			}
		}
		get_obj('keyword_s').value+=" "+va;
	}
  } 
}
//-->
</script>
                    <br/>作为相关文章的索引,如多个用空格隔开 
                                          </td>
                                   </tr>
                                   
                                   
                                  
                                 <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td>内容简介:</td>
	                                      <td>
	                                   <textarea name="data[description]" cols="100" rows="5"></textarea><br/>用于搜索引擎优化
	                                     </td>
                                 </tr>                                 
                                                                   
                                   
                                   
                                   <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td>作者:</td>

	                                      <td><input type="text" name="data[author]" size="15" value=""></td>
                                  </tr>
                                  <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td>来源:</td>
	                                      <td>
	                                    <input type="text" name="data[copyfrom]" size="20" value="" id="copyfrom">
                    <select name="select" onChange="MM_copyfrom(this)">
                      <option value='' selected>常用来源站点</option>
		 		 					 <!--{foreach($zhandian as $_key => $_value )}-->

		  <option value='{$_value}' >{$_value}</option>

		   <!--{/foreach}--> 
                    </select>
<!--                    <span close="01"> 
                    <input type="checkbox" name="data[addcopyfrom]" value="1">
                    入库 [<a href="" target="_blank">来源管理</a>] 
                    </span> -->
                    <script language="JavaScript">
<!--
function MM_copyfrom(selObj){ //v3.0
  va=selObj.options[selObj.selectedIndex].value
  if (va!=''){
  	get_obj('copyfrom').value=va;
  } 
}
//-->
</script>
                    <br/>来源网址: 
                    <input type="text" name="data[copyfromurl]" size="40" value="">
	                                     </td>
                                 </tr>
  
              <SCRIPT LANGUAGE="JavaScript">
<!--

function upfile(url,b){
	document.getElementById(b).value=url;

}
//-->
</SCRIPT>                               
                                  <tr >
	                                      <td>缩略图:</td>
	                                      <td>
                    <input type="text" name="data[picurl]" size="40" value="" id="uppic">
					
					<br/>
                    <iframe name='mainFrame2' frameborder=0 height=150 scrolling=no src='?app=new&act=upfile&id={$id}' width=370></iframe> 
                    <!--<br/>
                    <a href="javascript:" style="color:red;" id="cutimg_title" onClick="javascript:cutimg();">[裁剪图片]</a> 	-->					

				
              
	                                     </td>
                                 </tr>

<script language="javascript">
function get_obj(obj){
   return document.getElementById(obj);
}
function cutimg() 
{
	var img=document.getElementById("uppic").value;
if(img!=""){
	if(img.indexOf("http://")==-1){
		img="{SITE_URL}/{UPFILE_PATH}/"+img;
	}
	window.open("?app=new&act=cutimg&nextpic=1&width=400&height=325&srcimg="+img,"","width=580,height=530")
}else{
	document.getElementById("uppic").focus();
	alert("图片地址不存在");
}
}
</script>                                 
                                 
                                 <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                     <td>相关设置:</td>
	                                     <td>
                                        <span close="011"> 
                    <input type="checkbox" name="data[yz]" value="1"  checked >
                    审核 </span> <span close="01"> 
                    <input type="checkbox" name="data[top]" value="1" >
                    置顶 
                    <input type="checkbox" name="data[levels]" value="1" >
                    推荐 </span> 
                   <input type='checkbox' name='data[special]' value='1' >主页头条
                                         </td>

                                </tr>
                                

                                
                                 <tr >
	                                     <td colspan="2" align="left" >内容:<br/><iframe id='eWebEditor1' src='?app=new&act=kindeditor&id=atc_content&style=standard&w={$id}' frameborder='0' scrolling='no' width='100%' height='450'></iframe>
                       
                       
                       <input name='data[content]' id='atc_content' type='hidden' value=''>									 
										 </td>


                                </tr>                                
                                
                                <tr >
	                                     <td>&nbsp;</td>
	                                     <td><input name="id" type="hidden" value="{$id}" /><input type="submit" class="buton" value=" 提 交 " /></td>
                                </tr>
                                </table>
                                </form>

                 </div>

</div>



<!--{inc(footer.view.html)}-->